package fourFragment.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.xuegengwang.xuegengwang.R;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

import common.BaseActivity;
import utils.VariousUtils;

/**
 * Created by Administrator on 2017/4/14.
 * 关于今朝
 */
@ContentView(R.layout.about)
public class About extends BaseActivity {
    @ViewInject(R.id.common_back)
    private ImageView back;
    @ViewInject(R.id.common_title)
    private TextView title;
    @ViewInject(R.id.about_version)
    private TextView about_version;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
    }

    private void initView() {
        title.setText("关于今朝");
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                About.this.finish();
            }
        });
        about_version.setText("版本号 :"+VariousUtils.getVersion());
    }
}
